#!/usr/bin/node

var request = require('request');
var url ='http://api.twitter.com/1/statuses/public_timeline.json';
request(url, function (error, response, body) {
  if (!error && response.statusCode == 200) {
     var  twitter=(JSON.parse(body));
     for (var i in twitter){
      
       console.log('-------------------\nId:');
       console.log(twitter[i]['user']['id']);
       console.log('Nombre:');
       console.log(twitter[i]['user']['name']);
   }

  } else {
      console.log(error);
  }
})


